package com.haiya.common.notification;

import java.util.List;

/**
 * @author qiaoguoqiang
 */
public interface PublishedNotificationTrackerStore {

    /**
     * 已发布通知跟踪器
     * @return
     */
    public PublishedNotificationTracker publishedNotificationTracker();

    /**
     * 已发布通知跟踪器
     * @param aTypeName
     * @return
     */
    public PublishedNotificationTracker publishedNotificationTracker(String aTypeName);

    /**
     * 跟踪最近发布的通知
     * @param aPublishedNotificationTracker
     * @param aNotifications
     */
    public void trackMostRecentPublishedNotification(
            PublishedNotificationTracker aPublishedNotificationTracker,
            List<Notification> aNotifications);

    /**
     * 类型名称
     * @return
     */
    public String typeName();
}
